package com.usian.service.Impl;

import com.usian.mapper.DeptMapper;
import com.usian.pojo.Dept;
import com.usian.pojo.Emp;
import com.usian.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptMapper deptMapper;

    @Override
    public List<Dept> findAllDept() {
        return deptMapper.selectList(null);
    }

}
